package com.example.demo1.pay.mapper;

import com.example.demo1.pay.entity.Wallet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo1.pay.req.IDReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户钱包 Mapper 接口
 * </p>
 *
 * @author gong
 * @since 2023-02-27
 */
@Mapper
public interface WalletMapper extends BaseMapper<Wallet> {

    int payment(@Param("money") BigDecimal money, @Param("id")Long id);

    int updateWalletAddAmountById(@Param("money")BigDecimal money,@Param("id")Long id);
}
